﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Schema;
using Xtee.Core.Schema;

namespace Xtee.CodeDom.MetaInfo
{
    public class SimpleTypeInfo:TypeInfo
    {
        private readonly XmlSchemaSimpleType _xmlSchemaSimpleType;
        public SimpleTypeInfo(string fullName, XmlSchemaSimpleType xmlSchemaSimpleType, SchemaObjectClassInfo owner) : base(fullName, xmlSchemaSimpleType, owner)
        {
            _xmlSchemaSimpleType = xmlSchemaSimpleType;
        }
        
        public sealed override bool IsUserDefined => _xmlSchemaSimpleType.IsUserDefined();
        public sealed override bool IsAbstract => false;
    }
}
